package com.megvii.koala.data.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class LoginBean
{
    public String avatar;
    public int birthday;
    public List<BoxBean> boxes;
    public String come_from;
    public int company_id;
    public CompanyBean company;
    public String department;
    public String description;
    public String email;
    public int end_time;
    public int entry_date;
    public int gender;
    public int id;
    public int role_id;
    public String username;
    public String interviewee;
    public String job_number;
    public String name;
    public String screen_token;
    public boolean password_reseted;
    public String phone;
    public int purpose;
    public String remark;
    public int start_time;
    public int subject_type;
    public String title;
    public String position;
    //public ? visit_notify

    public String getCheckInIp()
    {
        if (boxes != null && !boxes.isEmpty())
        {
            return boxes.get(0).box_address;
        }
        return null;
    }
}
